
package org.apache.osgimaker.analyse.algorithm.classfile;

/**
 * Constant representing a <tt>int</tt> value.
 * 
 */
public class IntConstant extends Constant {
  private final int _value;

  /** Creates an instance for the specified int value. */
  public IntConstant(Constant[] pool, int value) {
    super(pool);
    _value = value;
  }

  /** Returns the wrapped int value. */
  public int getValue() {
    return _value;
  }

  /** Returns the constant type and the int value. */
  public String toString() {
    return "CONSTANT_Integer: " + _value;
  }
} //class